/*
 *  ActionTools.h
 *  Cocos2DEditor
 *
 *  Created by waver on 10-6-21.
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
 *
 */



#define REVERSE2BYTE(data)	{unsigned short temp = data; data = (((temp << 8) & 0xFF00)|((temp>>8) & 0x00FF));}
#define REVERSE4BYTE(data)	{unsigned int temp = data; data = (((temp << 24) & 0xFF000000)|((temp<<8) & 0x00FF0000)|((temp>> 8) & 0x0000FF00)|((temp >> 24) & 0x000000FF));}   
#define SAFE_DELETE(p) {if(p){delete p ; p = 0;}}
void JavaBitReverse(void* buffer, int size, int count);
const char* GetResPath(const char* file_name);